/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.sbbs.jpaannotation_02;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author Administrator
 */
@Entity
@Table(name = "T_Column_TABLE")
public class ColumnClass implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    private int i_prop;
     
    @Column(updatable = false, name = "s_property", nullable = false, length=10)
    private String s_prop;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getI_prop() {
        return i_prop;
    }

    public void setI_prop(int i_prop) {
        this.i_prop = i_prop;
    }

    public String getS_prop() {
        return s_prop;
    }

    public void setS_prop(String s_prop) {
        this.s_prop = s_prop;
    }
            
}
